using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;

namespace Lu62Viewer
{
    class MyFieldNode : MyNode
    {
        public const string emptyString = "empty";
        private Color fieldColorNode = Color.Blue;
        private Color emptyColorNode = Color.Gray;       

        public MyFieldNode() { }

        public MyFieldNode(string text) : base(text) { }

        public MyFieldNode(string _text, int _pos)
        {
            if (_text == " ")
            {
                Text = emptyString;
                ForeColor = emptyColorNode;
            }
            else
            {
                Text = _text;
                ForeColor = fieldColorNode;
            }
            Pos = _pos;
            Lenght = _text.Length;            
        }
    }
}
